﻿app.controller("BaseCtrl", function ($scope, $rootScope, $sce, BaseSrv) {
    $scope.AgreeConfim = function () {
        $rootScope.objConfirm.ConfirmClicked = true;
        $('#confirmModal').modal('hide');
    }

    $scope.ViewPage = function (nameView) {
        BaseSrv.ViewPage(nameView).then(function (response) {
            $scope.PartialViewPage = $sce.trustAsHtml(response.data);
        });
    }
});